# -*- coding: utf-8 -*-
"""
Created on Mon Oct 28 22:55:14 2019

@author: XCL01
"""


from math import e
import numpy as np
import matplotlib.pyplot as plt

def function(x):
    return (e**(- x**2))*(x - 2)

def plot_function(x1, x2):
    x = np.linspace(x1, x2, num=100)
    y = np.sin(function(x))**2
    plt.plot(x, y, color = 'red')
print(plot_function(0, 2))